.story-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.story-selector-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.story-selector-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: #e5e7eb;
  color: #374151;
}

.story-selector-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.story-item {
  width: 100%;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.story-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.story-item.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.story-item:last-child {
  margin-bottom: 0;
}

.story-info {
  flex: 1;
}

.story-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.story-description {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

.current-indicator {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.story-item:not(.active) .current-indicator {
  background: #667eea;
  color: white;
}

/* 滚动条样式 */
.story-selector-content::-webkit-scrollbar {
  width: 6px;
}

.story-selector-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.story-selector-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.story-selector-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .story-selector-overlay {
    padding: 10px;
  }
  
  .story-selector-modal {
    max-height: 90vh;
  }
  
  .story-selector-header {
    padding: 16px 20px;
  }
  
  .story-selector-header h2 {
    font-size: 1.25rem;
  }
  
  .story-selector-content {
    padding: 12px;
  }
  
  .story-item {
    padding: 14px;
  }
  
  .story-title {
    font-size: 15px;
  }
  
  .story-description {
    font-size: 13px;
  }
}